Skip to content

feat(4917): add Entry Variant support and integration tests#151

Open
OMpawar-21 wants to merge 3 commits intodevelopmentfrom
enhc/DX-4917
Open

feat(4917): add Entry Variant support and integration tests#151
OMpawar-21 wants to merge 3 commits intodevelopmentfrom
enhc/DX-4917

Conversation

@OMpawar-21
Copy link
Copy Markdown
Contributor

Description

Adds Management API support for entry variants and variant-aware publish, plus tests and version 0.8.0.

Changes

  • EntryVariant — create, fetch, find, update, delete for entry variant endpoints
  • Entry.Variant(uid) — access variant operations from an entry
  • PublishPublishVariant, PublishVariantRules, Variants / VariantRules on PublishUnpublishDetails; PublishUnpublishService serialization
  • Tests — unit tests (EntryVariant, publish JSON); integration Contentstack021_EntryVariantTest (Product Banner lifecycle + negatives)
  • DocsCHANGELOG.md v0.8.0; Directory.Build.props0.8.0

…ases

Add Contentstack018_EnvironmentTest.cs with complete CRUD coverage for Environment API.

- 16 tests: sync/async happy path + negative path scenarios
- Fix API calls to use environment names instead of UIDs for fetch/update/delete
- Includes proper cleanup, unique naming, and error handling
- All tests passing with comprehensive positive/negative validation
Add Contentstack019_RoleTest with 16 integration tests (sync/async CRUD + query,
negative paths for non-existent role UID). Roles use /roles/{uid}; minimal
RoleModel uses BranchRules for branch main. Mirrors Contentstack018 patterns.
Add EntryVariant model and Entry.Variant() for create/fetch/find/update/delete
against entry variant endpoints.

Extend publish flow with PublishVariant, PublishVariantRules, and serialization
in PublishUnpublishDetails / PublishUnpublishService; update unit tests for
variant publish JSON.

Add Contentstack021_EntryVariantTest: Product Banner lifecycle (setup, create,
fetch, publish, delete) with config-based stack API key, and negative cases
for invalid entry/variant, publish, environments, and unlinked content types.

Update CHANGELOG for Entry Variant support.
@OMpawar-21 OMpawar-21 requested a review from a team as a code owner March 31, 2026 11:50
@OMpawar-21 OMpawar-21 requested review from cs-raj and sunil-lakshman and removed request for a team March 31, 2026 11:50
@github-actions
Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

cs-raj
cs-raj previously approved these changes Apr 7, 2026
@OMpawar-21 OMpawar-21 dismissed cs-raj’s stale review April 7, 2026 10:40

The merge-base changed after approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants